.talk-tabs {
    .el-tabs__header {
        margin: 0 !important;
    }

    .talk {
        padding: 5px;
        border-bottom: 1px solid rgb(231, 230, 230);
        cursor: pointer;
        display: flex;
        flex-direction: row;
        justify-content: space-between;

        .content {
            width: 90%;
            .user {
                font-weight: bold;
                font-size: 15px;
            }
            .msg {
                margin-top: 10px;
                font-size: 13px;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
            }
        }

        .count {
            .bubble {
                height: 20px;
                line-height: 22px;
                font-size: 13px;
                padding: 0 5px;
                text-align: center;
                background: #FF6A6A;
                color: #fff;
                border-radius: 10px;
            }
        }
    }
}


.talk {
    .el-col {
        border: 1px solid rgb(219, 218, 218);
    }
}

.visitor-tabs {
    .el-tabs__header {
        margin: 0 !important;
    }
    .visitor-detail {
        padding: 5px;
        font-size: 12px !important;
        overflow-x: hidden;
        overflow-y: auto;
    
        .el-row {
            font-size: 12px;
            line-height: 30px;
            border-bottom: 1px solid rgb(219, 218, 218);
    
            .el-col {
                border: 0;
                word-wrap: break-word;
                overflow-x: hidden;
            }
        }
        .el-form {
            .el-form-item {
                margin: 10px 0;
                .el-form-item__label {
                    font-size: 12px;
                }
            }
        }
    }
    .trail-main {
        padding: 5px;
        border-bottom: 1px solid rgb(231, 230, 230);
        .created_at {
            font-weight: bold;
            font-size: 15px;
        }
        .content {
            margin-top: 8px;
            display: flex;
            flex-direction: row;
            justify-content: space-between;
        }
    }
}


.reply-form {
    .wave-uploader {
        .wave-img {
            width: 80px;
            height: 80px;
        }
        .el-icon.wave-uploader-icon {
            width: 80px;
            height: 80px;
        }
    }
}

$main-body-text-bg: #CD3333;

.talk-layout {
    overflow-x: hidden;

    .header {
        display: flex;
        flex-direction: row;
        justify-content: space-between;

        .title {
            font-weight: 600;
            line-height: 50px;
            font-size: 18px;
        }

        .close {
            height: 50px;
            border: none;
            line-height: 50px;
            display: flex;
            align-items: center;

            img {
                margin-right: 12px;
                vertical-align: middle;
            }
        }
    }

    .main-body {
        overflow-x: hidden;
        overflow-y: auto;
        background: #FFFFFF;
        word-wrap: break-word;
        padding: 10px;

        .direct-chat-msg {
            display: flex;
            flex-direction: row;
            justify-content: flex-start;
            margin-bottom: 20px;

            .avatar {
                height: 55px;

                .direct-chat-img {
                    border-radius: 50%;
                    height: 40px;
                    width: 40px;
                    margin-top: 12px;
                }
            }

            .msg {
                margin-left: 8px;

                .direct-chat-info {
                    font-size: 14px;

                    .direct-chat-name {
                        font-weight: 600;
                    }

                    .direct-chat-timestamp {
                        color: #999;
                        margin-left: 10px;
                    }
                }

                .direct-chat-text {
                    background: #d2d6de none repeat scroll 0 0;
                    border-radius: 5px;
                    color: #444;
                    padding: 8px 10px;
                    margin-top: 3px;
                    display: inline-block;

                    .emotion {
                        width: 32px;
                        height: 32px;
                        vertical-align: middle;
                        margin-top: -2px;
                    }

                    .img {
                        max-width: 100%;
                    }
                }
            }
        }

        .left {
            width: 80%;
        }

        .right {
            width: 80%;
            flex-direction: row-reverse;
            float: right;

            .msg {
                margin-left: 0;
                margin-right: 8px;

                .direct-chat-info {
                    text-align: right;
                }

                .direct-chat-text {
                    background: $main-body-text-bg none repeat scroll 0 0;
                    border: 1px solid $main-body-text-bg;
                    color: #FFFFFF;
                    float: right;
                }
            }
        }
    }

    .preview-img {
        text-align: center;
        width: 100%;
        height: 100%;
        position: fixed;
        left: 0;
        top: 0;
        z-index: 100;

        .img-container {
            width: 90%;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
            background-color: #f9f9f9;
            border-radius: 5px;

            img {
                width: 100%;
                background-size: contain/cover;
            }

            a {
                display: inline-block;
                width: 36px;
                height: 36px;
                text-decoration: none;
                position: absolute;
                right: -18px;
                top: -14px;
                background: url("/src/assets/fancy_close.png") no-repeat;
            }
        }
    }

    .emos {
        padding: 5px;
        position: fixed;
        bottom: 170px;
        z-index: 1;
        background: #FFFFFF;
        opacity: 0.9;

        img {
            width: 32px;
            height: 32px;
        }
    }

    .main-bottom {
        border-top: 1px solid #d2d6de;
        .file-img {
            padding: 5px 10px 0;

            svg {
                margin-right: 8px;
            }

            .file {
                display: none;
            }
        }

        .content {
            .text {
                width: 99vw;
                border: 0;
                padding: 5px;
                outline: none;
                font-size: 14px;
            }
        }

        .btn {
            padding: 0 5px;
            display: flex;
            flex-direction: row-reverse;

            button {
                border: 0;
                padding: 5px 10px;
                border-radius: 5px;
                background: $main-body-text-bg none repeat scroll 0 0;
                color: #FFFFFF;
            }
        }

        .img {
            margin-top: 10px;
            text-align: center;

            svg {
                width: 64px;
                height: 64px;
            }
        }

        .tip {
            text-align: center;
        }
    }
}